#ifndef __CORE_COMMON_STATUS_H_INCLUDE__
#define __CORE_COMMON_STATUS_H_INCLUDE__

#include <core/common/limits.h>

namespace core{ namespace common
{
	static const int kStatusCheckSleepTime   = 500;
	static const int kStatusHeartbeatInterval = 200;

	static const uint8 kStatusServerConnected = 1;
	static const uint8 kStatusServerConnecting = 2;
	static const uint8 kStatusServerUnconnect = 3;

	class Status
	{
	public:
		int64  startupTime_;
		int64  lastHeartbeatTime_;
		int64  heartbeatCount_;

		Status();
	};

	class ServerShareStatus : public core::common::Status
	{
	public:
		uint16 reserved_[8]; // reserved for 128 bits
	};
}}

#endif //__CORE_COMMON_STATUS_H_INCLUDE__

